package com.solution.admin.sysconfig.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.admin.sysconfig.dao.WechatMsgEventReplyDao;
import com.solution.admin.sysconfig.entity.WechatMsgEventReplyEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 微信接收事件推送DAO实现
 * @author solin
 * @date 2017-11-30 14:41:21
 */
@Repository
public class WechatMsgEventReplyDaoImpl extends BaseDaoImpl<WechatMsgEventReplyEntity> implements WechatMsgEventReplyDao {

	/**
	 * 保存微信接收事件推送信息
	 * @param wechatMsgEventReplyEntity
	 * @return
	 * @author solin
	 * @date 2017-11-30 14:41:21
	 */
	@Override
	public long saveWechatMsgEventReply(WechatMsgEventReplyEntity wechatMsgEventReplyEntity) {
		return super.insert(wechatMsgEventReplyEntity);
	}

	/**
	 * 分页查询微信接收事件推送信息
	 * @param pageParam 分页对象
	 * @param wechatMsgEventReply 分页参数
	 * @return PageBean 分页参数及数据
	 * @author solin
	 * @date 2017-11-30 14:41:21
	 */
	public PageBean listWechatMsgEventReplyPage(PageParam pageParam, Map<String, Object> param) {
		return super.listPage(pageParam, param);
	}

	/**
	 * 更新微信接收事件推送
	 * @param wechatMsgEventReplyEntity
	 * @return
	 * @author solin
	 * @date 2017-11-30 14:41:21
	 */
	@Override
	public int updateWechatMsgEventReply(WechatMsgEventReplyEntity wechatMsgEventReplyEntity) {
		return super.update(wechatMsgEventReplyEntity);
	}

	/**
	 * 删除微信接收事件推送
	 * @param wechatMsgEventReplyId
	 * @return
	 * @author solin
	 * @date 2017-11-30 14:41:21
	 */
	public int deleteWechatMsgEventReplyById( Long id) {
		return super.deleteById(id);
	}
	
	/**
	 * 根据条件查询微信接收事件推送
	 * @param param
	 * @return
	 * @author solin
	 * @date 2017-11-30 14:41:21
	 */
	@Override
	public List<WechatMsgEventReplyEntity> listWechatMsgEventReply( Map<String, Object> param) {
		return super.listBy(param);
	}
}
